function getFactoryPage(params) {
    return $axios({
        url:'/crop/factory/page',
        method: 'get',
        params
    })
}

function addFactory(params) {
    return $axios({
        url: '/crop/factory',
        method: 'post',
        data: { ...params }
    })
}


function editFactory(params) {
    return $axios({
        url: '/crop/factory',
        method: 'put',
        data: { ...params }
    })
}

function deleteFactory(id) {
    return $axios({
        url: '/crop/factory',
        method: 'delete',
        params: { id }
    })
}